<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>BoardGame 3000: Breakthrough Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">BoardGame 3000
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">A simple board game structure</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Breakthrough Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for Breakthrough:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_breakthrough.png" usemap="#Breakthrough_map" alt=""/>
  <map id="Breakthrough_map" name="Breakthrough_map">
<area href="class_i_game.html" title="Base class for games." alt="IGame" shape="rect" coords="0,0,88,24"/>
</map>
 </div></div>

<p><a href="class_breakthrough-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab1c9a30f5a88645c28e209a4a4e8867f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_breakthrough.html#ab1c9a30f5a88645c28e209a4a4e8867f">start</a> ()</td></tr>
<tr class="memitem:abeaf7f803fc2236542cbd49557571311"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_breakthrough.html#abeaf7f803fc2236542cbd49557571311">legal</a> ()</td></tr>
<tr class="memitem:a035be96fd79bcc73420ecfdc6343ac49"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_breakthrough.html#a035be96fd79bcc73420ecfdc6343ac49">make</a> (int fromX, int fromY, int toX, int toY)</td></tr>
<tr class="memitem:ad918f742d4785cae62ca9da74b806eca"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_breakthrough.html#ad918f742d4785cae62ca9da74b806eca">retract</a> ()</td></tr>
<tr class="memitem:a2a0783ffc4614d62410bb5dedebf4e67"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_breakthrough.html#a2a0783ffc4614d62410bb5dedebf4e67">display</a> ()</td></tr>
<tr class="memitem:ab7d3e6b405978f38772dc44b39c5ab54"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_breakthrough.html#ab7d3e6b405978f38772dc44b39c5ab54">evaluate</a> ()</td></tr>
<tr class="memitem:a1cea05f6e5c3f2ad82f635a57510ec72"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_breakthrough.html#a1cea05f6e5c3f2ad82f635a57510ec72">go</a> ()</td></tr>
<tr class="memitem:a35bfa3f16f20446aaadaa48ccfe80e15"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_breakthrough.html#a35bfa3f16f20446aaadaa48ccfe80e15">level</a> (std::string <a class="el" href="class_breakthrough.html#a35bfa3f16f20446aaadaa48ccfe80e15">level</a>)</td></tr>
<tr class="memitem:a36fdea5f2e9490f93d1d8f67fd6493b1"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_breakthrough.html#a36fdea5f2e9490f93d1d8f67fd6493b1">debug</a> ()</td></tr>
<tr class="memitem:a4283f2aa47bf02eb74f903a22409ec7e"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_breakthrough.html#a4283f2aa47bf02eb74f903a22409ec7e">getName</a> ()</td></tr>
</table>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a36fdea5f2e9490f93d1d8f67fd6493b1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_breakthrough.html#a36fdea5f2e9490f93d1d8f67fd6493b1">Breakthrough::debug</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Toggles debug mode on/off if debug is on, software should display additional information as it runs, otherwise only if asked for </p>

<p>Reimplemented from <a class="el" href="class_i_game.html#a708979bb871a85d348691ee4a0136ccf">IGame</a>.</p>

</div>
</div>
<a class="anchor" id="a2a0783ffc4614d62410bb5dedebf4e67"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_breakthrough.html#a2a0783ffc4614d62410bb5dedebf4e67">Breakthrough::display</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Prints out current gameState </p>

<p>Reimplemented from <a class="el" href="class_i_game.html#af84c5ff1b9d776381994b349601b1c24">IGame</a>.</p>

</div>
</div>
<a class="anchor" id="ab7d3e6b405978f38772dc44b39c5ab54"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_breakthrough.html#ab7d3e6b405978f38772dc44b39c5ab54">Breakthrough::evaluate</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Displays the evaluation of current gamestate </p>

<p>Reimplemented from <a class="el" href="class_i_game.html#a0931c237dcb52b18d117abcb47363d5f">IGame</a>.</p>

</div>
</div>
<a class="anchor" id="a4283f2aa47bf02eb74f903a22409ec7e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="class_breakthrough.html#a4283f2aa47bf02eb74f903a22409ec7e">Breakthrough::getName</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns string, with name of game </p>

<p>Implements <a class="el" href="class_i_game.html#a43bfc6eee8384673e768016b7082c264">IGame</a>.</p>

</div>
</div>
<a class="anchor" id="a1cea05f6e5c3f2ad82f635a57510ec72"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_breakthrough.html#a1cea05f6e5c3f2ad82f635a57510ec72">Breakthrough::go</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The computer plays the next move Displays the move it makes if no more moves are available, it displays final score </p>

<p>Reimplemented from <a class="el" href="class_i_game.html#ac201277e2d76453b5eb33938eb5ed6a3">IGame</a>.</p>

</div>
</div>
<a class="anchor" id="abeaf7f803fc2236542cbd49557571311"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_breakthrough.html#abeaf7f803fc2236542cbd49557571311">Breakthrough::legal</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Prints out all legal moves </p>

<p>Reimplemented from <a class="el" href="class_i_game.html#a7dde4d727104e457208fc0f492cb5958">IGame</a>.</p>

</div>
</div>
<a class="anchor" id="a35bfa3f16f20446aaadaa48ccfe80e15"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_breakthrough.html#a35bfa3f16f20446aaadaa48ccfe80e15">Breakthrough::level</a> </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>level</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The difficulty level of <a class="el" href="class_breakthrough.html#a1cea05f6e5c3f2ad82f635a57510ec72">go()</a> function </p>

<p>Reimplemented from <a class="el" href="class_i_game.html#a17cd14cb2249a9178419e7a704053756">IGame</a>.</p>

</div>
</div>
<a class="anchor" id="a035be96fd79bcc73420ecfdc6343ac49"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_breakthrough.html#a035be96fd79bcc73420ecfdc6343ac49">Breakthrough::make</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fromX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fromY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>toX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>toY</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Moves <a class="el" href="class_piece.html" title="One Piece on the board.">Piece</a>, Only calls movePiece() function in state </p>

<p>Reimplemented from <a class="el" href="class_i_game.html#a90e8f12cc54b0f8907c29078a82efc58">IGame</a>.</p>

</div>
</div>
<a class="anchor" id="ad918f742d4785cae62ca9da74b806eca"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_breakthrough.html#ad918f742d4785cae62ca9da74b806eca">Breakthrough::retract</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Retract last move, Only calls <a class="el" href="class_breakthrough.html#ad918f742d4785cae62ca9da74b806eca">retract()</a> function in state </p>

<p>Reimplemented from <a class="el" href="class_i_game.html#a60314a983073a4014639b403229b6c83">IGame</a>.</p>

</div>
</div>
<a class="anchor" id="ab1c9a30f5a88645c28e209a4a4e8867f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_breakthrough.html#ab1c9a30f5a88645c28e209a4a4e8867f">Breakthrough::start</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Starts the game, Function supposed to initilize board and start <a class="el" href="class_game_state.html" title="Class that holds information and methods for current game.">GameState</a> </p>

<p>Implements <a class="el" href="class_i_game.html#abdc3543ee754cecb7eb156f05ce5869d">IGame</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_breakthrough_8h_source.html">Breakthrough.h</a></li>
<li>Breakthrough.cpp</li>
</ul>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Sat May 12 2012 15:22:53 for BoardGame 3000 by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
